package com.schoolET.http;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;
import org.springframework.stereotype.Component;

/**
 * @author: lin
 * @createTime: 2024-06-05  21:07
 * @description:
 */
@Component
public interface WechatHttps {

    @Get(url = "https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={js_code}&grant_type={grant_type}",
            contentType = "text/plain",
            headers = "Content-Type: application/x-www-form-urlencoded")
    String wechatHttpUrl(@Var("appid") String appId, @Var("secret") String secret, @Var("js_code") String jsCode, @Var("grant_type") String grantType);

}
